<?php

use Muyuxuanpay\wechat\WeChat;

require_once '../../vendor/autoload.php';

$config = [
    'app_id'=>'wx8feb8157bccc6fa8',//微信appid
    'secret'=>'4c403e92a9f1231bf596205dc8863ef1',//微信的secret
    'response_type'=>'array',//返回类型(array/string)
];
//$a = '70_H_fckksUwtAvuZ38l2FERBYLJZD9ISUv3oV66lrNiji_hDkoZqu88IDUtvMnYjdVgKKZkLBajLtpkRQe_pgnrywjz7QC0yRyG2HVt3o_Do5ZFRf5Zz9zp0RgbHsXBYhAAARVS';
$obj = WeChat::miniProgram($config);
//$res = $obj->getAccessToken();
//$res = $obj->getScheme([]);
//$res = $obj->getQRCode([
//    'path'=>'/pages/index/index'
//]);
//$res = $obj->queryUrlLink();
$res = $obj->getUrlLink();
//$code = "dbd9b45ad5ed325572a66938eaea2ee325b51eeeb9e9fcf088236b368fbab567";
//$res = $obj->getPhoneNumber($code);
echo "<pre>";
print_r($res);
exit;